<?php
class Front {
	private $_parse = NULL;
	private $_trace = NULL;
	private $_controller = NULL;
	private static $_instance = NULL;
	
	private function __construct() {
		$this->_trace = Trace::create();
		$this->_trace->push(__CLASS__);	
	}
	
	private function __clone () {}
	
	public static function create () {
		if (self::$_instance === NULL) {
			return new self();	
		}
		return self::$_instance;
	}
	
	/**
	 * run
	 */
	public function run () {
		//echo 'test';
		$this->_parse = new Parse();
		//echo 'test';
		//$this->_controller = new Imu_Controller_Index();
		//$this->_controller->index();
		Router::router();
	}
}